package com.lagou.framework.config;

import com.lagou.framework.factory.TomcatWebServerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.DispatcherServlet;

/**
 * @author mawenjie
 */
@Configuration
public class AppConfig {

    @Bean
    public DispatcherServlet dispatcherServlet() {
        return new DispatcherServlet();
    }

    @Bean
    public TomcatWebServerFactory tomcatWebServerFactory() {
        return new TomcatWebServerFactory();
    }

}
